<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html>

<html>
<body>
<div class="panel-group col-sm-2" id="hrms_sidebar_left" role="tablist" aria-multiselectable="true">


   <c:forEach var="role" items="${user.roles}">
        <ul class="nav nav-pills nav-stacked emp_sidebar" >
            <li role="presentation" class="active">
                <a href="#" data-toggle="collapse" data-target="#${role.roleId}">
                    <span class="glyphicon glyphicon-user" aria-hidden="true">${role.roleFunctionName}</span>
                </a>
                <ul class="nav nav-pills nav-stacked emp_sidebar"  id="${role.roleId}">
                    <c:forEach var="menu" items="${role.menus}">
                        <li role="presentation"><a href="${menu.menuUrl}" class="emp_info">${menu.menuName}</a></li>
                    </c:forEach>
                </ul>
            </li>
        </ul>
    </c:forEach>



</div><!-- /.panel-group，#hrms_sidebar_left -->


</body>
</html>
